<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of role
 *
 * @author root
 */
class role {

    public function getRoleAll() {
        $isAdmin = "isset(Yii::app()->user->role) && (
            (base64_decode(Yii::app()->user->role)=='Super Admin') ||
            (base64_decode(Yii::app()->user->role)=='Admin TK Rawamangun') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMP Rawamangun') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMA Rawamangun') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMP Cibubur') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMA Cibubur') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMP Kebayoran') ||
            (base64_decode(Yii::app()->user->role)=='Admin SMA Kebayoran'))";
        return $isAdmin;
    }

}

?>
